public class PlayerAIState_Tumble : State<PlayerAI>
{
	public static PlayerAIState_Tumble instance;

	private PlayerAIState_Tumble()
	{
	}

	public static PlayerAIState_Tumble getInstance()
	{
		if (instance == null)
		{
			instance = new PlayerAIState_Tumble();
		}
		return instance;
	}

	public override void enter(PlayerAI owner)
	{
		base.enter(owner);
		owner.player.do_tumble();
	}

	public override void fixedUpdate(PlayerAI owner)
	{
		base.fixedUpdate(owner);
		if (owner.player.isInState(PlayerStateBehavior_Idle.getInstance()))
		{
			if (!owner.player.IsOffense())
			{
				owner.do_defense_defense();
			}
			else if (owner.player.IsOffense())
			{
				owner.do_offense_findpos();
			}
		}
	}
}
